package com.lingxu.api.ztb.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 账号机构关联表
 * </p>
 *
 * @author admin
 * @since 2025-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("API_SYS_USER_DEPT_RELA")
@ApiModel(value="SysUserDeptRela对象", description="账号机构关联表")
public class SysUserDeptRela implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "职务")
    @TableField("RANK_MEMO")
    private String rankMemo;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "序号，取S_ SYS_USER_DEPT_RELA序号")
    @TableField("ID")
    private String id;

    @ApiModelProperty(value = "主账号ID")
    @TableField("SU_ID")
    private String suId;

    @ApiModelProperty(value = "机构ID")
    @TableField("SD_ID")
    private String sdId;

    @ApiModelProperty(value = "用户在组织机构中排序号")
    @TableField("USER_ORDER")
    private String userOrder;

    @ApiModelProperty(value = "是否为主组织机构 0：非 1：是")
    @TableField("IS_PRIMARY")
    private String isPrimary;

    @ApiModelProperty(value = "创建人ID")
    @TableField("CREATE_ID")
    private String createId;

    @ApiModelProperty(value = "修改人ID")
    @TableField("UPDATE_ID")
    private String updateId;

    @ApiModelProperty(value = "状态 0：生效  1：失效")
    @TableField("STATUS")
    private String status;


}
